package sg.nus.iss.vmcs.utils;


/**
 * Utility Method for formatting money<br><br>
 * Modifications:
 * <li>Philip - 28/12/2010 - Refactored and cleaned up method</li>
 * <br><br>
 * @author Pang Pingli
 * @author Philip Chew
 */
public class Password {

	/**
	 * Obtains the valid password from the property file.
	 * The input password is compared against the value in the property file
	 * @param psi Input password
	 * @return True if password is valid, false if otherwise
	 */
	public static boolean validatePassword(String psi) { 
		return psi.compareTo(Environment.getInstance().getPassword()) == 0;
	}
}